/* Streamlit/Gradio 风格美化 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: #f0f2f6;
}

.container {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: white;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.settings-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.history-card {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.hidden {
    display: none;
}

/* 主界面样式 */
.main {
    flex: 1;
    padding: 30px;
    background: #f0f2f6;
}

.header {
    margin-bottom: 25px;
}

.chat-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: 65vh;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 消息气泡 */
.message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
}

.message.user {
    background: #e3f2fd;
    margin-left: auto;
}

.message.assistant {
    background: #f1f3f4;
}

/* 按钮和输入框 */
.primary-button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-button:disabled {
    background: #8ab4f8;
    cursor: not-allowed;
}

.secondary-button {
    background: #f8f9fa;
    color: #1a73e8;
    border: 1px solid #dadce0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.icon-button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-control {
    width: 80%;
    padding: 10px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    margin: 8px 0;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}